package com.cloud.cmt.usermanage.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.cmt.usermanage.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.List;

/**
 * User: wcy
 * Date: 2017/10/17
 * Time: 15:37
 */
@Data
@Entity
public class Role extends BaseEntity<Long>{

    @JsonProperty("role_name")
    @JSONField(name = "role_name")
    @ApiModelProperty(name = "role_name", notes = "角色名", example = "农夫")
    private String roleName;

//    @ApiModelProperty(name = "status", notes = "状态 1启用，0不启用，", example = "angela")
//    private Integer status;

    @JsonProperty("remark")
    @JSONField(name = "remark")
    @ApiModelProperty(name = "remark", notes = "备注", example = "山泉")
    private String remark;

    @JsonProperty("rank")
    @ApiModelProperty(name = "rank", notes = "排序", example = "1")
    private Double rank;

    @JsonProperty("tenant_id")
    @JSONField(name = "tenant_id")
    @ApiModelProperty(name = "tenant_id", notes = "租户", example = "1")
    private String tenantId;

    @JsonProperty("status")
    @JSONField(name = "status")
    @ApiModelProperty(name = "status", notes = "状态1正常0禁用", example = "1")
    private Integer status;

}
